package com.data.monitoring.model.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

// DTO定义
@Data
public class MonitoredFolderDTO {
    @NotNull
    @ApiModelProperty(value = "服务器信息id")
    private Long serverId;

    @NotBlank
    @ApiModelProperty(value = "文件夹路径")
    private String folderPath;

    @Min(30)
    @ApiModelProperty(value = "间隔时间（秒）")
    private Integer checkInterval = 300;

    @Min(1)
    @Max(5)
    @ApiModelProperty(value = "监控深度(子文件夹层级)")
    private Integer maxDepth = 1;
}